<include file="Public/header" title="{$category.seo_title}" keywords="{$category.seo_keywords}" description="{$category.seo_description}" />

<!-- main -->
<main class="content-wrapper page-blog-single">
	<section class="content-header" style="background-image: url(__TMPL__Public/assets/images/home-bg1.jpg);">
		<div class="container">
			<div class="row">
				<div class="col-sm-12">
					<h1>内容详情</h1>
					<p>Find blogs you like.</p>
				</div>
			</div>
		</div>
	</section>
	
	<section class="content-body alt">
		<div class="container">
			<div class="row">
				<div class="col-sm-9">
					<img alt="" src="{$thumb}" class="img-responsive" style="width:100%">
					<article class="post white-wrapper p-20">
						<div class="post-header">
							<h3 class="post-title">{$title}</h3>
							<div class="post-meta">
								<i class="fa fa-clock-o"></i>&nbsp;<span>{$update_time|strtotime|date='Y-m-d h:i',###}</span>&nbsp;&nbsp;
								<i class="fa fa-user"></i>&nbsp;<span>{$author}</span>&nbsp;&nbsp;
								<i class="fa fa-eye"></i>&nbsp;<span>{$view_count}</span>&nbsp;人浏览
							</div>
						</div>
						<div class="post-body">
							<div class="post-content">
								{$content}
							</div>
						</div>
					</article>
					<div class="row post-pagination">
                        <div class="col-sm-6 text-left">
							<if condition="!empty($prev)">
							上一篇<br>
							<a href="{$prev.url}">{$prev.title}</a>
							</if>
                        </div>
                        <div class="col-sm-6 text-right">
							<if condition="!empty($next)">
							下一篇<br>
							<a href="{$next.url}">{$next.title}</a>
                        	</if>
                        </div>
					</div>
				</div>
				<div class="col-sm-3">
					<div class="sidebar-item category white-wrapper">
						<h3 class="with-border-bottom p-15">资讯动态</h3>
						<ul>
							<content id="vo" table-name="category" where="pid=$CF_NEWS_CID" order="id desc">
                            <li>
                            	<a href="{$vo.url}" <if condition="$vo['id'] eq $CID">class="active"</if>><i class="fa fa-angle-right"></i>&nbsp;{$vo.name}</a>
                            </li>
                            </content>
                        </ul>
					</div>
					<div class="sidebar-item latest-blog-post white-wrapper">
						<h3 class="with-border-bottom p-15">最新发布</h3>
						<ul class="media-list p-15">
							<content id="vo" table-name="post" where="cid in ($CF_SUB_NEWS_CIDS) and status=1" order="id desc" limit="4">
							<li class="media">
	                            <a class="media-left" href="{$vo.url}">
				            	<if condition="empty($vo['thumb'])"> 
									<img src="__TMPL__Public/assets/images/post/post_thumb.jpg" class="media-object" alt="{$vo.title}" />
								<else />
									<img src="__ROOT__/{$vo.thumb}" class="media-object" alt="{$vo.title}" />
								</if>
	                            </a>
	                            <div class="media-body">
	                                <h5 class="media-heading">
	                                	<a href="{$vo.url}">
	                                		{$vo.title}
	                                	</a>
	                                </h5>
									<p>{$vo.update_time|strtotime|date='Y-m-d h:i',###}</p>
	                            </div>
							</li>
			        		</content>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</section>
</main>

<script type="text/javascript">
(function() {
})();
</script>

<include file="Public/footer" />
